package com.zhouzhou.fastjava.util;

import java.util.Collection;

public abstract class CollectionKit {

    private CollectionKit() {
    }

    public static boolean isNotEmpty(Collection<?> collection) {
        return !isEmpty(collection);
    }

    public static boolean isEmpty(Collection<?> collection) {
        if (collection == null) {
            return true;
        }
        return collection.isEmpty();
    }

}
